class Image < ActiveRecord::Base
  has_many :categoryImages, :dependent => true
  has_many :categories, :through => :categoryImages
  has_many :comments
  
  def thumburl
    "http://www.henrywagner.org" + directory + "thumb/" + filename
  end

  def fullurl
    "http://www.henrywagner.org" + directory + filename
  end
  
end
